package homework.day03;

/**
 * @author ThinkBook
 */
public class Test03 {
    public static int setBit(int v,int n){
        int mask = 1 << (n-1);
        int t = mask | v;
        return t;
    }

    public static void main(String[] args) {
        int r = setBit(10,3);
        System.out.println("r: " + r);
    }
}
